home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1994
/
MacHack 1994.toast
/
MacHack™ 1987-1994
/
MacHack™ '90
/
MacHack 90 Contest Entries
/
Surovell Stuffƒ
/
GDResToggle.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-06-05
|
386 b
|
24 lines
|
[
TEXT/KAHL
]
/* #include <MacHeaders> */
#include <Color.h>
#define NULL 0L
pascal void GDeviceChanged(
GDHandle gdh )
= { 0x203C, 0x000A, 0x0007, 0xAB1D };
main()
{
GDHandle curDevHdl, mainDevHdl;
short curRes, newRes;
mainDevHdl = GetMainDevice();
curRes = (**mainDevHdl).gdResPref;
newRes = (curRes == 4) ? 5 : 4;
(**mainDevHdl).gdResPref = newRes;
GDeviceChanged( mainDevHdl );
}